import request from "./request"

export const changePassword = async(changeInfo)=>{
  try {
    let ret = await request({
      url:'/changepwd',
      method:"POST",
      data:changeInfo
    })

    return ret
  } catch (error) {
    console.log("err",error);
    return Promise.reject({
      message:"网络异常"
    })
  }
}